import DeviceStorage from '../utils/DeviceStorage';

export async function getAuthority() {
    const authorityString = await DeviceStorage.get('authority');
    return authorityString;
}
export function setAuthority(authority) {
    DeviceStorage.save('authority',authority);
}
export function removeAuthority() {
    DeviceStorage.remove('authority');
}
export function getUserPhone() {
    return DeviceStorage.get('userData');
}
export function setUserPhone(phone) {
    DeviceStorage.save('userData',phone);
}